const mongoose = require('mongoose');
const config = require('../config/config');
const bluebird = require('bluebird')
mongoose.connect(config.mongo.url, {useMongoClient: true, promiseLibrary: bluebird});

mongoose.connection.on('connected', () => {
    console.log('mongo is connect')
})
module.exports = mongoose